# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-danga-socket
pkgver=1.62
pkgrel=2
pkgdesc="Perl/CPAN Module Danga::Socket"
arch=("any")
url="https://search.cpan.org/dist/Danga-Socket/"
license=("GPL" "PerlArtistic")
depends=("perl-sys-syscall")
source=("https://search.cpan.org/CPAN/authors/id/N/NM/NML/Danga-Socket-$pkgver.tar.gz")
sha256sums=('953c3f787ef1a11d956b28084246ffe3fc0f80da8fcb14f48477025773dc8b74')

build() {
  cd "$srcdir"/Danga-Socket-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Danga-Socket-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
